﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DevExpress.Data;
using Timesheet.Service;
using Timesheet.Domain;
using DevExpress.Web;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;

namespace Timesheet.WebForm.Cates
{
    public partial class Locations:System.Web.UI.Page
    {
        public ILocationsService _Service { get; set; } 
                 
        protected void ds_ObjectCreating(object sender,ObjectDataSourceEventArgs e)
        {
            e.ObjectInstance = _Service;
        }

        protected void btnNewLocation_Click(object sender,EventArgs e)
        {
            grvLocations.AddNewRow();
        }
    }
}